OneTeamSoftware\WooCommerce\Shipping\Adapter\Shippo D

Total Complexity 188
Dependencies 1
Dependents 0
Total lines 1,340
Lines of code 1,073
Logical lines of code 385
Comment lines 2
Methods 47
Properties 5

Methods 47

Method Rating Maintainability Complexity Lines of code
getShipmentResponse()
C
34 30 84
initServices()
B
19
1 298
prepareAddress()
A
44 15 50
setShipmentCacheValues()
A
45 14 42
getRatesParams()
A
44 13 41
prepareParcelInfo()
A
46 13 36
getErrorMessage()
A
51 11 27
prepareCustomsInfo()
A
48 10 33
getResponse()
A
53 8 20
prepareCustomsItem()
A
48 7 32
initPackageTypes()
S
37 1 76
getRates()
S
56 4 17
validate()
S
57 4 16
prepareCustomsItems()
S
60 4 14
getValidationErrors()
S
59 4 13
getShipmentId()
S
61 4 12
initCarriers()
S
42 1 54
isResponseObjectValid()
S
67 4 7
getIntegrationFormFields()
S
48 1 39
__construct()
S
48 1 35
getCacheKey()
S
64 3 10
getRequestParams()
S
65 3 8
validateActiveApiToken()
S
63 3 9
getCachedParcelInfo()
S
63 2 10
getCachedCustomsInfo()
S
63 2 10
getApiKey()
S
80 2 3
getCachedAddress()
S
63 2 10
getRatesResponse()
S
66 2 8
hasAddressValidationFeature()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
getServices()
S
82 1 3
addHeadersAndParams()
S
78 1 3
getRouteUrl()
S
75 1 4
hasUseSellerAddressFeature()
S
82 1 3
hasReturnLabelFeature()
S
82 1 3
hasInsuranceFeature()
S
82 1 3
hasOriginFeature()
S
82 1 3
getName()
S
82 1 3
getRequestBody()
S
75 1 4
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasUpdateShipmentsFeature()
S
82 1 3
hasCreateShipmentFeature()
S
82 1 3
hasCreateManifestsFeature()
S
82 1 3
hasCreateOrderFeature()
S
82 1 3
hasImportShipmentsFeature()
S
82 1 3
hasSignatureFeature()
S
82 1 3